A man was arrested moments before he was due to get married by Home Office officials who suspected it was a sham wedding.
Officers said they swooped on Wakefield Register Office, on Northgate, last Friday and arrested a 22-year-old man from Pakistan who was found to be in the country on a student visa.
He was questioned and released on immigration bail while further investigations are carried out.
The would-be bride, a 28-year-old Polish woman, was questioned by officers and later released, the Home Office said.
Anita Bailey, assistant director of the Yorkshire and Humber Home Office Immigration Enforcement team, said: “We are working closely with registrars to clamp down on sham weddings and civil partnerships in West Yorkshire.
“Where there are suspicions that a relationship may not be genuine we will investigate and, if necessary, intervene to stop it happening.”
The Home Office said the operation was carried out with the full cooperation of the superintendent registrar.