We demonstrated that pharmacological inhibition or genetic knockout of SLC7A11 can promote bactericidal function of macrophages, reduce bacterial burden in the bone and improve bone structure of mice with S. aureus osteomyelitis. The gene discussed is SLC7A11; the disease is osteomyelitis.