The present invention relates to pyridoxine (vitamin B
6
) derived compounds of formula (I), pharmaceutically acceptable salts, or solvates thereof, wherein R
1
, R
2
, R
4
, A, L B
1
and B
2
are as defined in the specification, and pharmaceutical compositions comprising the compounds. Compounds of formula (I) inhibit Human Immunodeficiency Virus (HIV)-integrase enzyme and are useful for preventing and treating HIV infection and AIDS.