Answer
Spain was the opponent that Brazil defeated in the championship match of the 2013 FIFA Confederations Cup. Hosted in Brazil, this prestigious international football tournament featured eight national teams, and Brazil emerged victorious, securing the title by overcoming Spain in the final.