We describe a protocol for the microfabrication of the gradient-generating microfluidic device that can generate spatial and temporal gradients in well-defined microenvironment. In this approach, the gradient-generating microfluidic device can be used to study directed cell migration, embryogenesis, wound healing, and cancer metastasis.