The Pentagon will permit military chaplains to perform same-sex marriage in states that legally recognize gay marriage, it said Friday.

Defense Department guidance issued to military chaplains said they may participate in ceremonies on or off military bases in states that recognize gay unions. Chaplains are not required to officiate at same-sex weddings if doing so is counter to their religious or personal beliefs, the guidance said.