As the colonists emerged from their winter camps in 1779, they had gained valuable military training and were now confident in their ability to defeat the British. The focus of the war then shifted to the southern colonies, where the Continental Army faced difficulties fighting against loyalist colonists. While the British achieved some early victories in the south, American victories at Kings Mountain and Cowpens turned the tide. Finally, in 1781 General Washington and French allies trapped General Cornwallis' forces at Yorktown, cutting off escape by land and sea. After sustained bombardment, Cornwallis surrendered, effectively ending major military conflict in the American Revolutionary War.