Porous silicon has been extensively researched as an interesting photoluminescent material for photoelectric device integration. Residual stress often occurs due to capillary force during drying and results in warp, fracture and failure of the devices. Micro-Raman spectroscopy (MRS) has many special advantages of nondestructive, non-contact, high spatial resolution (1 mu m),broad spectrum range, Raman shift unaffected by the frequency of laser source, and ability to focus on a specific layer of sample. Furthermore, Raman spectrum is a powerful tool for the study of residual stress for its sensitivity to strain in the sample, which make it possible to measure residual stress directly. The underlying basis of micro-Raman spectroscopy for strain measurement is that Raman shift reflects the atomic spacing change, namely the strain information. The residual stress was measured during drying using Micro-Raman spectrum technology, the maxim is 3.6GPa. The relation of residual stress and Raman shift, drying times and FWHM were analysed, the capillary effect and the residual stress evolution from wetting to drying stages of porous silicon were investigated using phonon confinement model.