Two places at once: the article and the noun
German has four cases, and the genitive is the one that answers wessen, "whose." Like every German case, it shows up on the article: der becomes des for masculine nouns, das becomes des for neuter nouns, and die becomes der for both feminine nouns and every plural, regardless of gender. Indefinite articles follow the same split, ein becoming eines for masculine and neuter, eine becoming einer for feminine. So far that matches how the other three cases work, changing only the little word in front of the noun.
The genitive breaks that pattern. Masculine and neuter nouns in the singular typically add their own ending too, an -s or -es tacked onto the noun itself, so the case gets marked twice in the same phrase: des Mannes ("of the man"), des Kindes ("of the child"). Feminine nouns and plurals don't do this; der Frau and der Kinder look exactly the same whether the noun is singular or plural, masculine-adjacent or not, because only the article carries the information. That double marking on masculine and neuter singular nouns is the detail most explanations skip past, and it's also the reason the rest of this guide exists: once a noun can mark genitive on its own, German has to decide when that's -s and when it's -es, and what happens when neither the article nor the noun ending is available to do the job.
Choosing between -s and -es
Duden's own language-advice page on the topic, "Genitiv auf -s oder -es?", lays out when each ending applies. Nouns ending in a sibilant sound, -ss, -z, or -tz, take -es without exception: des Hasses ("of the hatred"), des Glanzes ("of the shine"), des Satzes ("of the sentence"). At the other end, nouns ending in -en, -em, -el, -er, or carrying a diminutive suffix take only -s, never -es: des Schwimmens, des Pegels, des Fahrers, des Büchleins. Between those two poles, Duden says plainly that a large group of other one- and two-syllable masculine and neuter nouns can take either ending, and which one a given writer reaches for often comes down to how the sentence sounds out loud, not any hard rule.
A few patterns tip the choice one way or the other even inside that flexible middle group. The fuller -es form is favored when the genitive phrase is placed before the noun it modifies, not after, as in des Tages Hitze ("the day's heat") or des Waldes Kühle ("the forest's coolness"), and it's also favored in compounds built with a linking -s for purely acoustic reasons, as in des Jubiläumsjahres. The shorter -s form, by contrast, tends to win with two-syllable nouns whose final syllable is unstressed, and with nouns ending in a vowel or a vowel plus h: des Abdrucks, des Mitleids, des Schnees, des Flohs. Duden's print dictionary marks this optionality directly in its entries, printing the -e in brackets right after the headword, as in "Blut, das; -[e]s."
An adjective placed in front of one of these genitive nouns has its own separate ending to track, and it doesn't simply mirror the noun's -s or -es. The German Adjective Endings guide covers the standing exception where strong declension takes -en where -es would otherwise be expected, specifically in the masculine and neuter genitive singular: des kalten Kaffees, and not des kaltes Kaffees, so the noun and its adjective end up marking the same case with two different-looking endings.
Seven nouns that skip the pattern entirely
A separate class of masculine nouns, the so-called weak nouns, doesn't follow the -s/-es system above at all. Weak nouns like der Junge take a plain -n across the accusative, dative, and genitive alike: den Jungen, dem Jungen, des Jungen. Seven of them break even that pattern, tacking an extra -s onto the -n specifically in the genitive, so the ending becomes -ns rather than -n: der Name becomes des Namens, der Wille becomes des Willens, der Glaube becomes des Glaubens, der Gedanke becomes des Gedankens, der Buchstabe becomes des Buchstabens, der Friede becomes des Friedens, and der Funke becomes des Funkens. Duden's own declension table for Wille confirms the pattern directly: der Wille, den Willen, dem Willen, des Willens, with -en in the accusative and dative but -ens in the genitive alone.
Das Herz sits outside even that group, and it's worth learning as its own exception, since forcing it into either pattern above doesn't work. It's neuter, not masculine, so it doesn't belong with the seven weak nouns above by gender in the first place, but its genitive still lands on des Herzens, matching their -ens shape. Its accusative, however, doesn't change at all: unlike den Namen or den Willen, the accusative stays das Herz, identical to the nominative. Nothing else in the language quite behaves this way, which is exactly why grammar references tend to flag Herz as a one-off rather than folding it into a rule.
Why "sich Problems annehmen" is still wrong
Duden runs a language-advice column, and one of its entries is a piece called simply "Die Genitivregel," built around three sentences that look genitive at first glance but are ungrammatical: sich Studien befleißigen, sich Problems annehmen, den Kauf Orangen tätigen. The column breaks the rule into three parts. First, the Sichtbarkeitsregel, the visibility rule: a genitive phrase needs at least one word in it whose ending clearly signals that case. Studien and Orangen don't signal genitive on their own, so the phrase needs a companion, an article or adjective, that does: sich tiefgehender Studien befleißigen, der Kauf der Orangen.
Problems looks like it should already satisfy that rule, since -s is a genitive ending. That's where the second part, the s-Regel, comes in: Duden states that a noun carrying genitive-s (the strong masculine and neuter pattern covered above) is never allowed to stand completely alone, no matter how clearly its ending marks the case. It always needs an accompanying article or adjective, so sich dieses Problems annehmen works where sich Problems annehmen doesn't. When a writer doesn't want to add that companion word at all, the third part, the Ersatzregel, offers a way out: swap in a different construction instead of forcing an invisible or unaccompanied genitive. Von plus dative covers most genitive attributes, turning der Kauf Orangen into der Kauf von Orangen; a partitive genitive can become a same-case apposition instead, eine Tasse Kaffees becoming eine Tasse Kaffee; and several prepositions that historically took the genitive now default to the dative in exactly this situation, trotz Widersprüche becoming trotz Widersprüchen. Proper names are the one carve-out to all three rules: Ellas Besuch needs no companion at all, because a name ending in -s is already understood as genitive on its own.
The four prepositions holding the line, and the one that's slipping
Während ("during"), trotz ("despite"), wegen ("because of"), and (an)statt ("instead of") are the four genitive prepositions taught earliest and used most often, and a good starting list to memorize: während des Sommers, trotz des Regens, wegen des Staus, anstatt eines Anrufs. They aren't the only ones still standing, though. Formal, business, and legal German keeps a longer roster of genitive prepositions in active use, among them aufgrund, angesichts, anhand, innerhalb, außerhalb, mithilfe, laut, and dank, so genitive government in prepositions is far from a dying feature of the written language even as it slips in casual speech.
Wegen is the one actually moving in real time. In casual spoken German, wegen dem Wetter (dative) is common enough that most fluent speakers use it without a second thought, even though wegen des Wetters (genitive) remains the form expected in formal writing and is what usage guides still mark as standard. It's the same spoken-versus-written split that shapes how German handles past tense, where the German Perfect Tense guide covers casual speech leaning on the Perfekt in situations formal writing would still reach for the Präteritum instead. The genitive-to-dative shift is well documented enough that it gave a real book its title: Bastian Sick's Der Dativ ist dem Genitiv sein Tod, a collection of his Zwiebelfisch language column from Spiegel Online, sold more than a million copies after its 2004 release and turned this exact genitive-to-dative drift into a recurring theme across the series. The title itself performs the joke it names: a grammatically careful phrasing would read der Tod des Genitivs, "the genitive's death," in the genitive Duden still calls correct, but Sick titled the book in the colloquial dative-possessive pattern instead, "the dative is to the genitive its death," the exact construction the book spends its pages describing.