However, the election was annulled before voting was completed by Noriega's government, and Endara and his running mate Guillermo Ford were attacked in front of foreign media by Noriega supporters, events that contributed to the US invasion of Panama in December of that year. During the invasion, Endara was declared the election's winner and sworn in as the new president of Panama.