Consonant gradation is a type of consonant mutation (mostly lenition but also assimilation) found in some Uralic languages, more specifically in the Finnic, Samic and Samoyedic branches. It originally arose as an allophonic alternation between open and closed syllables, but has become grammaticalised due to changes in the syllable structure of the languages affected. The term "consonant gradation" refers to a word-medial alternation of consonants between fortis and lenis realisations. The fortis strong grade appears in historically open syllables (ending in a vowel), while the lenis weak grade appears in historically closed syllables (ending in a consonant). The exact realisation of the fortis–lenis distinction differs between the branches. In the Samic languages it was realised through fortition, specifically lengthening, in the strong grade. In the Finnic and Samoyedic languages, there was instead lenition in the weak grade. Thus, the exact realization of the contrast is not crucial. The language groups differ in regard to their treatment sequences of a vowel followed by j or w in Proto-Uralic. In the Samic languages, the second part of these remains phonologically a consonant, and can thus close the syllable before it, triggering the weak grade. It also takes part in gradation itself, lengthening in the strong grade. In Finnic, on the other hand, these were treated as diphthongs, and were equivalent to long vowels in terms of syllable structure. Consequently, they did not close the syllable and did not affect gradation. Consonant gradation is understood to have originally been a predictable phonological process. In all languages that retain it, however, it has evolved further to a less predictable system of consonant mutation, of morphophonological or even purely morphological nature. This is a consequence of later changes in the structure of syllables, which made closed syllables open or vice versa, without adjusting the gradation.