Since the release of Old Gods DLC, and 1.10 patch, one of the new mechanics in Crusader Kings II is looting.
Looting can only be carried out by member of the pagan religion subset. Raiding will make your army hostile to any troops of the country you are raiding. This will mean that they can, and often will attack you while you are raiding.
Each province has an amount of gold that potentially can be looted by raiders. The amount varies depending on the wealth of the province. This can be seen by the yellow bar on the holding tab. The amount of gold a conquering army receives after the siege is displayed on the siege results screen.
Fortification and defense buildings in the holding decrease amount of gold given to raiders that has not yet successfully sieged the holding. If the holding is successfully sieged or assaulted all the gold from that holding will be taken. If a holding is sacked by siege or assault the province will be immune to raids for a short period of time.
When declaring war against a country, raiders will continue to raid and all sieges performed by them will not contribute to warscore.
When looting is carried out from a boat (only available for Norse religion) and the raiders are offloaded to a province that you do not border any held territories you will not immediately gain the gold. The raiders will keep the gold and when they re-board their raiding ship they will "store" gold on the ship. Ships can hold 10 gold per ship. To add this raided gold to your treasury you must dock the ship at one of your provinces. Once docking you will receive all the gold you raided and an equal amount of prestige.
This article is a stub it needs expanding and further explanation of the loot system.