text: The state is located in western Brazil , in a region mostly occupied by the inland marshes of the Pantanal .
simplified: The state is located in western Brazil , in an area of the country that is mostly marshes of the Pantanal .