After defeating the Elden Beast, rest at the nearby Site of Grace. Finally, you can interact with the Fractured Marika statue and select your ending.