The microfluidic probe (MFP) facilitates performing local chemistry on biological substrates by confining nanoliter volumes of liquids. Using one particular implementation of the MFP, the hierarchical hydrodynamic flow confinement (hHFC), multiple liquids are simultaneously brought in contact with a substrate. Local chemical action and liquid shaping using the hHFC, is exploited to create cell patterns by locally lysing and removing cells. By utilizing the scanning ability of the MFP, user-defined patterns of cell monolayers are created. This protocol enables rapid, real-time and spatially controlled cell patterning, which can allow selective cell-cell and cell-matrix interaction studies.