A diatomic molecule is a molecule that consists of two atoms, which can be either of the same element or different elements. These molecules are significant in chemistry because they can form covalent bonds and are fundamental in understanding molecular structures and interactions. Common examples include hydrogen (H$_2$), oxygen (O$_2$), and nitrogen (N$_2$), which play essential roles in various chemical reactions and processes.