What is the difference between USB and XLR microphones?

A USB microphone connects directly to a laptop or desktop, while an XLR microphone needs an audio interface or mixer. USB is simpler, while XLR offers more flexibility for larger setups.