His valedictory visit to South America marks an end to an era.