Hydrogen bonds can only form when the atom is involved in a polar covalent bond, where there is a significant difference in electronegativity between the bonded atoms. This difference in electronegativity creates a partial positive charge on the hydrogen atom and a partial negative charge on the more electronegative atom, allowing for the formation of hydrogen bonds.