Petting is a municipality in the district Traunstein, Bavaria, Germany.
The first mention of the municipality was in 1048 with the name Pettinga; however, it is possible that the settlement already existed at the time of the Roman Empire.
Petting, built on a wash-up from the last Ice age, is said to have once been an island when large areas were still under water.
On the square of the church stood allegedly the castle of the nobles of Pettingen.
Petting was the seat of a chair of the Archbishopric of Salzburg and fell to Archduke Ferdinand of Tuscany during secularization in 1803, to Austria in 1805, which Petting had to cede to the Kingdom of Bavaria in 1810.