He excelled as a teacher and administrator, and had a very large share in the organization and development of the Cambridge biological school. From 1881 to 1903 he was one of the secretaries of the
Royal Society, and in that capacity exercised a wide influence on the study of biology in Britain. In the
1899 Birthday Honours, he was created a Knight Commander of the
Order of the Bath (KCB), and served as president of the
British Association at its meeting at Dover in September 1899. Foster was elected to represent the
University of London in parliament in a
by-election in February 1900, and returned unopposed in the
1900 general election held later the same year. He stood for the
Liberal Unionist Party, and though returned as a Unionist, his political action was not to be dictated by party considerations, and he gravitated towards
Liberalism. He played no prominent part in parliament and indicated a desire to resign in 1902, but stayed on until the next
election of 1906, where he stood for re-election but was defeated. He was joint editor with
E. Ray Lankester of
The Scientific Memoirs of Thomas Henry Huxley. His chief writings were a
Textbook of Physiology (1876), which became a standard work, and
Lectures on the History of Physiology during the 16th, 17th and 18th Centuries (1901), which consisted of lectures delivered at the
Cooper Medical College,
San Francisco, in 1900. He was elected as an honorary member of the
Manchester Literary and Philosophical Society in 1889 and a member of the
American Philosophical Society in 1902. He died suddenly in London in 1907. ==Irises==