The primary purpose of the Tennis Court Oath was to establish the National Assembly. The oath was taken on June 20, 1789, by the members of the Third Estate (which represented the common people) who had been locked out of their meeting place by the King's officials. They pledged to remain in session until they had drafted a new constitution for France, thereby establishing the National Assembly. Therefore, the correct answer is "to establish the National Assembly."