Chaplains were originally formed by Lorgar as part of the religious slant he brought to the Word Bearers, charging them with spreading the cult of the Lectitio Divinatus, his early form of Emperor-worship. After assuming control of the Council of Terra, Malcador the Sigillite instructed the Space Marine Legions to employ Chaplains to enforce the Decree of Nikea, the Emperor's restrictions on Librarians, as a sort of proto-Commissar.
In the present, a Chaplain's role in a chapter is to root out heresy, inspire other Marines by chanting a litany of verses, maintain the Chapter's relics and traditions, and basically make the Marines around him righteously angry. Unlike Commissars of the Imperial Guard, he isn't keen on executing his own men for simple cowardice, mainly because Space Marines only retreat to gain a better tactical advantage and the fact that a Marine is more expensive to create than an expendable guardsman; but he does still torture/kill xenos, mutants and heretics for tactical, religious, or recreational purposes. Chaplains are an HQ unit and use a Crozius Arcanum. It is their badge of office, a fuckhueg mace capable of going straight through armour and utterly shattering your head right off of your shoulders in a single swipe, while looking totally sweet in his black power armour and skull visage helmet, while scaring the living shit out of the enemy (until 6th/7th edition, it's now AP4 so it's even worse than a normal Power Weapon for that. THANKS GW!!), higher ranked Chaplains may also be issued Terminator armour. Outside of the company Chaplains, you have the Master of Sanctity or High Chaplain, who oversees the Chapter Chaplaincy and is a senior advisor to the Chapter Master, and the Reclusiarch, who oversees the Reclusiam, where the Chapter's sacred relics and trophies are displayed. Often times the two posts are combined.
For all intents and purposes, just imagine a Space Marine, but even more fanatical and badass. He also has great oratorical skills to make his brothers stop bitching and to pick up his knife then charge that Bloodthirster and stab him right in the balls because goddammit that's how you make the Emprah proud. It is also suggested that Chaplains use their "oratory" skills for other purposes as well, but these may just be rumours spread to question the MANLINESS of the Spess Mehreens.
The Chaos Space Marine equivalent is the Dark Apostle, most associated with the Word Bearers. Older fluff stated that only Word Bearers could have them because no other Chaplains ever fell or will fall to Chaos... which later editions revealed to be a lie, since Chaplains in their present form only originally existed in the Word Bearers in the first place.
Blood Angels Chaplain
The Blood Angels Chaplains were originally known as "Wardens", who served as advisors and mentors to the younger generations. When the Edict of Nikaea was declared and the Chaplain Edict followed, the Wardens were appointed to oversee enforcement. Following the Horus Heresy, the Wardens of the Blood Angels and their successor Chapters became Chaplains, and were tasked with an additional, somber purpose: they were to lead the Death Company, those Marines who fell to the Black Rage and the Red Thirst, into battle. Being surrounded by raging berserkers, the Chaplains must have iron strong wills to oversee these Marines and maintain their own sanity.
Dark Angels Interrogator-Chaplain
The Dark Angels and their successors have an extra rank for Chaplains who make it into the Inner Circle and learn the "truth" (or at least part of it) about the
Fallen Angels HUGE PARTY THE LION THREW AT CALIBAN. After passing several trials of the soul (the penalty for failure being death or worse), they interrogate (read: torture) captured Fallen Angels TRAITORS THAT HAVE NO CONNECTION TO THE DARK ANGELS WHATSOEVER to try and force them to repent for their crimes. These "Interrogator-Chaplains" are extremely patient and resilient against the *cough* insidious lies of captured heretics, and will take as long as necessary to finally break them. To put this in perspective, the very best Interrogator-Chaplain that the Dark Angels ever had only managed to get ten Fallen TRAITORS FROM THE NINE TRAITOR LEGIONS BECAUSE, AS WE ALL KNOW WELL AND GOOD, THERE ARE ONLY NINE TRAITOR LEGIONS to confess and repent over the course of 300 years of service.
Iron Hands Iron Father
Among the Iron Hands, the Chaplains are known as an "Iron Father", which combines the role of Chaplain and Techmarine together, which reflects the Iron Hands heavy preference for augmentics. Also unique in the fact that they're completely separated from the Ecclesiarchy altogether, considering the chapter's predilection towards machinery and the like. The spat ended with them splitting off and the Iron Hands unable to have Rosarii. To compensate that, the Iron Hands have to fabricate their own equivalents using some special Adeptus Mechanicus schemes. Needless to say, when comparing the technological prowess of the Ecchlesiarchy and the Mechanicus...
Space Wolves Wolf Priest
The Chaplains of the Space Wolves are the Wolf Priests, who combine the role of Chaplain and medic into one. All Wolf Priests(also look after the chapters gene seed and perform the implantation process normally the role of the apothicary), along with the Rune Priests (Librarians) and Iron Priests (Techmarines) serve as part of the Company of the Great Wolf (the elite Great Company under the Chapter Master of the Space Wolves) and are assigned to the other eleven Great Companies as needed.
- Varnus: An Ultramarines Chaplain whose defining deed (making him a potential mary sue(IT WAS AWESOME NONETHELESS)) is single-handedly pwning a fuck-mothering BLOODTHIRSTER. Needless to say, Khorne was very salty.
- Asmodai: Interrogator-Chaplain of the Dark Angels. A major buzzkill, and batshit crazy, but more famous than his boss.
- Sapphon: Head Interrogator-Chaplain of the Dark Angels, at odds with Asmodai over practically everything.
- Grimaldus: Reclusiarch of the Black Templars. A seriously hardcore bastard who defended Helsreach.
- Xavier: Famous Salamanders Chaplain, meaning he's a major bro.
- Ortan Cassius: Master of Sanctity for the Ultramarines. Responsible for the formation of the Tyrannic War Veterans, to better help combat the menace that almost devoured all of Ultramar.
- Ulrik the Slayer: High Wolf Priest of the Space Wolves. A wild bastard who survived the First War of Armageddon and also has Leman Russ' own helmet.
- Kardan Stronos: Iron Hands Iron Father. Was elected to act as Chapter Master by the clan council. Also has a massive boner for Razorbacks, and an equally large hate-boner for the Necrons.
- Astorath the Grim: Blood Angels Master of Sanctity and Redeemer of the Lost. His job involves rounding up those in the Death Company and then lops their heads off, as they're pretty much lost causes by that point.
- Lemartes: Blood Angels Chaplain who's badass enough to rein control over the Black Rage. Keeps an eye over the Death Company as Guardian of the Lost. He is currently the second most 40K thing in 40K, being the patron saint of always being mind-shatteringly angry, closely beat out by the Eversor Assassin.
- Mikelus: Blood Ravens Reclusiarch who was said to have beaten the Necron Lord of Kronus...according to Davian Thule. Everyone else can attest to him dying like a bitch to the 'cron Lord's incredible amounts of cheese. But he was a nice honour guard member so it's okay.
- Durendin: Chaplain of the Grey Knights who appears in the first story of Justicar Alaric. Known for wielding relic nemesis force lightning claws passed down from the early days of the chapter.
For 90 pts Chaplains have a Veteran stat line with +1WS, 2Ws, and LD10. They've got a bolt pistol and Crozius which counts as a powermaul, and a 4++, with access to Terminator armor, ranged, special issue, and chapter relics like other Independent Characters. Chaplains are more a support character than a singular power house, giving their unit re-rolls to hit, and Fearless. Vanilla Marine's chaplains have no choice in melee weapons for some reason. Odd considering that codex represents the broadest spectrum of chapters. Only getting to take a powerfist, in place of their pistol.
Dark Angels have two: regular ones and Interrogators. Regular ones are identical to the above, but cannot take Terminator Armor and Chapter Relics. They do however have access to melee weapons. Interrogators come for 20 more points and get the Deathwing, Preferred Enemy (Chaos) and Fear rules and a near-captain stat line with -1WS, and access to every piece of wargear expect heavy weapons, they practically outstrip regular Captains in every way unless you pimp out a captain with loads of expensive gear. If you use them they're best used in either the Black Knights or Deathwing Knights.
Wolf Priests are probably an oddity among the Space Wolves, since they can take multiple ranged options but no melee. They also have access to Chapter Relics, Terminator Armor and Runic Armor, other than having a 4++ thanks to the wolf talisman. Having the same stat line of regular chaplains, these guys are even more support-focused than their vanilla counterparts. Thanks to the half-apothecary gig, they give Feel No Pain(6+) to the unit they're in, along with Favoured Enemy, making them the perfect scrub-sitters, making the weakest units in your army able to hold their own in a fight, especially if supported by big numbers. Wolf Priests also have Counter Attack and Acute Sense, much like every other unit in a Space Wolf army. Best use for a Wolf Priest is to stick them in a big Blood Claws unit (or even better, Swift Claws) and use them to target the opponent's infantry. Favoured Enemy allows you to use an abundance of plasma guns with relative safety and kinda makes up for the Blood Claws' WS3 and BS3, while FNP gives your guys a chance to last even against stronger opponents, at least for a while. Unfortunately, the lack of melee options means the Wolf Priest is not gonna be much useful in challenges against MEQs, so you better give him a Wolf Guard pack leader properly kitted for the task, while the Wolf Priest and the Blood Claws drown the rest of the enemy unit with the sheer amount of attacks.