Daytime: Solar heating ionizes the D-layer of the ionosphere, which absorbs AM (medium-wave) signals. Ground-wave propagation limits range to ~100–200 km.
Nighttime: D-layer dissipates; the higher E- and F-layers reflect AM signals back to Earth (skywave), enabling reception hundreds to thousands of km away.
This diurnal cycle is why you hear distant AM stations only after dark.