What did the Chinese buildto fend off intruders from the north?

What did chinese build to fend off intruders from the north