Dirty birds of a feather flock together!

A Colorado shutterbug snapped this hilarious image of birds flying in a phallic formation.

Wildlife photographer Robert Palmer and a buddy were in California’s Central Valley shooting peregrine falcons when one came upon its prey, a huge group of starlings.

With a predator approaching, the starlings flocked into a defensive formation — prompting Palmer to start snapping.

“They usually don’t form a phallic symbol,” a chuckling Palmer told The Post on Thursday.

Palmer said he didn’t even realize the birds had made this particular formation until hours later when inspecting all the images he had snapped.

“Anytime we see a formation, we’re just taking pictures. We have a big (memory) card that holds a lot of pictures, so we edit later,” Palmer said. “We both laughed when we saw this.”