When you sleep with onions in your socks, the body will act as an absorbent and absorb all the sulfur compounds present in the onions. They help purify your blood and kill germs and bacteria.