Farmar returned to Mobile to retire and join the planter class. He was elected to the General Assembly five times and served as a justice of the peace for three terms. Robert died on August 22, 1778 and was buried in Mobile, Alabama. A few years later the plantation was lost during the Battle of Fort Charlotte. His wife Mary Anderson Farmar sold most of the family assets and returned to Yorkshire, England.