There are two parts in this thesis. The first part consists of constructions of Hilbert schemes and Hom schemes with their preliminaries. The second part is some local properties of Hom schemes, structure of its tangent spaces and estimation of its dimension, and their applications: proving Mori's bend-and-break lemmas and a theorem about the existence of rational curves on Fano varieties.