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.
Swiss central banker wants to boost equity to head off risks
This content was published on
Equity levels at the Swiss National Bank (SNB) are much too low for the risks its large balance sheet poses, according to Martin Schlegel.
Beer sales in Switzerland watered down by bad weather
This content was published on
The past brewing year fell through in Switzerland, partly due to the bad weather. Beer sales shrank again. For the first time, per capita consumption fell below the 50 liter mark.
Compensation for Syrian after pregnant wife denied help on Swiss train
This content was published on
Switzerland’s Federal Court has partially upheld the appeal of a Syrian family being deported from Switzerland to Italy in 2014. The man now also receives compensation.
Swiss-EU negotiations: Cassis to meet Sefcovic in Bern
This content was published on
Swiss Foreign Minister Ignazio Cassis will meet the Vice-President of the EU Commission, Maros Sefcovic, in Bern on Wednesday.
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.