Where do Mezuzot come from?

The mezuzah recalls the Exodus from Egypt, when the lamb's blood smeared on the doorpost "identified" the Jewish homes that God passed over during the plague of the first born. From that day forward, the mezuzah has always identified a home as being Jewish.

haggadah Section: -- Ten Plagues
Source: Rabbi Shraga Simmons - Aish.com