House Speaker Nancy Pelosi arrived in Baghdad for a surprise visit, an Iraqi government official said Saturday.