Shi Huangdi (Qin Shi Huang) unified China in 221 BCE and ordered the connection of existing fortification walls from various warring states, creating the first version of the Great Wall. While walls existed before, he is credited with organizing and connecting them into a unified defensive system.