The application of the diffusion Monte Carlo algorithm in three-body systems is studied. We develop a program and use it to calculate the property of various three-body systems. Regular Coulomb systems such as atoms, molecules, and ions are investigated. The calculation is then extended to exotic systems where electrons are replaced by muons. Some nuclei with neutron halos are also calculated as three-body systems consisting of a core and two external nucleons. Our results agree well with experiments and others' work.