Nitrogenous bases are organic molecules that serve as the fundamental building blocks of nucleic acids, such as DNA and RNA, by forming base pairs through hydrogen bonding. They play a crucial role in encoding genetic information and are categorized into two types: purines and pyrimidines.