"An ancient humanoid war machine.
They are said to be remnants from a lost ancient nation. Some believe that they were developed not as war machines, but as protectors of the ruins.
Though that hypothesis does not explain why would they choose to employ explosive weaponry inside the very ruins they are supposed to protect"
-Adventurer Handbook
The Ruin Guards were weapons of war codenamed by people of Khaenri'ah as "Field Tillers". These came about because "the land is not to be tilled with farming tools, but rather is to be fought for with steel and blood." After the destruction of Khaenri'ah, the Field Tillers were left without masters and went out of control, spreading to every corner of Teyvat. As many ended up in ruins and history of Khaenri'ah is virtually unknown by most, present-day people called them "Ruin Guards", believing them to be protectors of the ruins. While many have since fallen into disrepair, a few remain active but dormant, while even fewer continue to wander aimlessly across Teyvat.