 In May 1815, Adams learned that President Madison had appointed him as the U.S. ambassador to Britain.With the aid of Clay and Gallatin, Adams negotiated a limited trade agreement with Britain.Following the conclusion of the trade agreement, much of Adams's time as ambassador was spent helping stranded American sailors and prisoners of war.