This lecture covers the fundamentals of photonic crystals, including their mathematical description, bandgaps, and index guiding. It explores mechanisms for optomechanical coupling, such as the photoelastic effect and moving boundary effect, and concludes with the formation of optical cavities and their applications in cavity optomechanics.