The most common form is wage withholding: your employer estimates your income tax and social contributions and pays the net amount to you and the rest to the state. At year-end the tax return reconciles the estimate with the actual liability and you receive a refund or pay a top-up.
Switzerland also applies a 35% federal withholding tax (Verrechnungssteuer) on Swiss-source dividends, interest and lottery winnings. Swiss residents reclaim it via the tax return; non-residents may reclaim part of it under double-taxation treaties. Foreign workers without C permit are taxed at source on wages via Quellensteuer at cantonal rates.
When you receive a payment subject to withholding tax in a foreign country, the relevant tax treaty determines whether you can reclaim the excess. Filing the right reclaim form (US W-8BEN, French formulaire 5000 etc.) at the right time matters: many countries enforce a strict deadline of two to three years.
A Swiss investor receives a CHF 1,000 dividend from Nestlé. The bank withholds CHF 350 federal withholding tax and pays out CHF 650. The full CHF 1,000 is declared on the tax return; the CHF 350 is credited against the final tax bill or refunded.