In this talk I will briefly elucidate the principles of two photon microscopy and the advantages in using this type of microscopy for deep imaging in living tissues. I will describe the work from my lab where we use two photon microscopy in combination of genetically encoded calcium indicators to chronically record from the cortex while the animal is performing a behavioral task. The advantages over other techniques and the limitations will be discussed.