 In 2005, Ma Ying-jeou became KMT chairman defeating speaker Wang Jin-pyng in the first public election for KMT chairmanship.The KMT won a decisive victory in the 3-in-1 local elections of December 2005, replacing the DPP as the largest party at the local level.This was seen as a major victory for the party ahead of legislative elections in 2007.