UDP works by sending data packets in a continuous stream without establishing a connection or performing error checking. It prioritizes speed over reliability, making it ideal for applications like streaming and gaming where real-time data transmission is crucial.