Lacking the wealth to induce soldiers to join his company, Monroe instead asked his uncle to return him to the front. Monroe was assigned to the staff of General William Alexander, Lord Stirling. During this time he formed a close friendship with the Marquis de Lafayette, a French volunteer who encouraged him to view the war as part of a wider struggle against religious and political tyranny. Monroe served in the Philadelphia campaign and spent the winter of 1777–78 at the encampment of Valley Forge, sharing a log hut with Marshall. After serving in the Battle of Monmouth, the destitute Monroe resigned his commission in December 1778 and joined his uncle in Philadelphia. After the British captured Savannah, the Virginia legislature decided to raise four regiments, and Monroe returned to his native state, hoping to receive his own command. With letters of recommendation from Washington, Stirling, and Alexander Hamilton, Monroe received a commission as a lieutenant colonel and was expected to lead one of the regiments, but recruitment again proved to be a problem. On Jones's advice, Monroe returned to Williamsburg to study law, becoming a protege of Virginia Governor Thomas Jefferson.