A lattice Boltzmann method for double-diffusive natural convection is presented. The model combines a multicomponent lattice Boltzmann scheme with a finite-difference solution of the energy equation to simulate natural convection caused by gradients in temperature and concentration. The model is validated both in two and three dimensions, and the agreement with literature data is satisfactory. A case study of thermosolutal convection of air in a cubical enclosure with horizontal thermal and solutal gradients is presented, exhibiting a rich variety of flow structures.