A horn antenna works by directing radio waves through a flared structure, which helps to focus the energy and improve the antenna's gain and directivity.