The foreign ministry said the move was necessary because of the deteriorating security situation.
The ambassador and four other diplomatic staff had left Ukraine with the support of a team of special forces from the Swiss army.
The ministry on Wednesday confirmed reports by several Swiss newspapers and online sites.
The embassy was closed on Monday. It had operated with reduced personnel and resources over the past week.
The foreign ministryExternal link has advised all Swiss citizens to leave Ukraine if possible. Swiss nationals who need assistance are told to contact the foreign ministry helpline by e-mail or telephone.
There were 268 registered Swiss nationals and family members in Ukraine until last Thursday.
However, it is not clear how many of them have already fled the country in the meantime.
More
More
Switzerland backs full EU sanctions against Russia
This content was published on
Switzerland has decided to adopt the full range of sanctions imposed by the European Union against Russia.
Employees in Switzerland increasingly stressed at work
This content was published on
The proportion of people in Switzerland who are stressed at work has increased by 5% over ten years, according to the Federal Statistical Office.
This content was published on
F/A-18 fighter jets will practice take offs and landings on the A1 motorway between Payerne and Avenches in canton Vaud on June 5.
Swisscom finalises financing for Vodafone Italia takeover
This content was published on
Telecoms group Swisscom has taken the next step in its takeover of Vodafone Italia and secured financing for the deal, the company said on Thursday.
Switzerland commits CHF50 million to combat rural poverty worldwide
This content was published on
The Federal Council approved a contribution of CHF49.5 million ($54.1 million) for the International Fund for Agricultural Development (IFAD).
Arrests made in raid against Turkish criminal organisation
This content was published on
A cross-border raid against a Turkish criminal organisation was conducted, including property searches in cantons Aargau and Zurich.
This content was published on
The Swiss government has advised its citizens against travelling to Ukraine, but it stopped short of asking them to leave the country.
You can find an overview of ongoing debates with our journalists here . Please join us!
If you want to start a conversation about a topic raised in this article or want to report factual errors, email us at english@swissinfo.ch.