Baldwin IV, born c.980, was the son of Arnulf II, Count of Flanders and Rozala of Ivrea. When his father died in 987 Baldwin succeeded him as Count of Flanders . His mother, Rozala, was the regent of Flanders until he reached the age of majority. After his father's death, his mother's second marriage was arranged by Hugh Capet. She married Hugh's son Robert II, King of France as his first wife. When Robert repudiated her in 991 Baldwin rebelled. When they came to terms Artois and Ostrevant, once taken from Flanders, were returned to Baldwin.