normally, you can create a swap partition. this is usually done at installation. otherwise, you need resize your other partition to make space for it, then format it as swap.
another way is to create a swap file. swap partition is fixed, while swap file can create and remove dynamically.