Using silicon based micromachining we have developed different techniques to create 1D and 2D confined nanochannels, with a characteristic diameter down to 5 nm. A short introduction to these techniques will be given. Capillary action in channels of this small size is a strong effect