More specifically, a slanging match in verse form where two poets insult each other alternately in profanely abusive verses. Flyting of Dunbar and Kennedie is the pinnacle of this rich Scottish tradition.
Dunbar has the curious distinction of having been responsible for the first printed use of the word "fuck": (his 1503 poem "Brash of Wowing" Collected Poems, ed. Mackenzie, cf. 'In secret place this hyndir nycht' includes the lines: "Yit be his feirris he wald haif fukkit:/ Ye brek my hairt, my bony ane.") He thus established a long and noble tradition. The "powerful word" which Dunbar put into print in 1508 was not decriminalised until 1960.
His poem The Flyting of Dunbar and Kennedie also contains the term cuntbittin (meaning afflicted with venereal disease), the first known use of the word cunt in literature (although Chaucer used queynte as a euphemism for the word in the Canterbury Tales). The Flyting also contains the line (addressed by Kennedy to Dunbar) "Wan-fukkit funling, that natour maid ane yrle" (the phrase "wan-fukkit" might perhaps be rendered as 'unfortunately conceived', or 'ineptly conceived', in Modern English - Kennedy is accusing Dunbar of being a foundling and a dwarf).