biology ok. So, the PAM sequence is a sequence of nucleotides called the protospacer adjacent motif (usually NNG, with N being any nucleotide). Viral DNA has many PAM sequences. When the protospacer is cut out of the viral DNA that has been injected into the bacteria, this is done a little after the PAM site by Cas1 and Cas2 (just other restriction endonucleases). The purpose of the PAM site is for the Cas9 cutting part of the CRISPR-Cas9 process. When the Cas9 enzymes identifies viral DNA and a PAM region on it, it opens up the DNA and sees whether or not the gRNA is complementary to the sequence of bases upstream from the PAM sequence but on the opposite strand. If the gRNA is complementary to the viral DNA section after the PAM sequence, it will cut the DNA on both strands just upstream from the PAM. However, if the gRNA does not match the viral sequence, Cas9 closes the viral DNA and continues to search for another PAM site (it can take multiple goes to find the right one since there are lots of PAM sites). So in summary, the PAM site is like a recognition tool or tag for Cas9 to search for and identify, allowing it to check the viral DNA with the gRNA before making a cut. Hope that makes sense!