You can invest funds with tax privileges via your retirement savings account. There are pure account solutions where money is held in an account and interest is paid on it, or retirement accounts that are linked to a securities account and used to buy fund units. The fund units are then held in a separate custody account.
If you already have a pension fund, you may pay in a maximum amount of up to 7,056 Swiss francs (as of 2023). If you are self-employed and do not have a pension fund, you may pay a maximum of 35,280 Swiss francs or a maximum of 20 percent of net income into a pillar 3a account. These payments can be deducted from your taxable income. This means you can save on taxes.