MAP2 primarily functions to stabilize microtubules, which are integral components of the cytoskeleton. By binding to microtubules, MAP2 helps maintain their stability and organization, which is vital for the proper functioning of neurons. This stabilization is particularly important in dendrites, where microtubules support the complex architecture necessary for synaptic connections and signal transmission.