Please read the following table in HTML format from a webpage and then answer the question in detail according to the table. Each table cell is defined by a <td> and a </td> tag. Each table row starts with a <tr> and ends with a </tr> tag. 'rowspan=m' and 'colspan=n' represents a cell spaning over 'm' rows and 'n' columns.

Webpage title:
List of monarchs of Brazil
Table title:
Emperors of Brazil (1822-1889)
Table:
<table id='hittask' contenteditable='False'>
<tr> <th colspan=1 rowspan=1 > Name </th><th colspan=1 rowspan=1 > Lifespan </th><th colspan=1 rowspan=1 > Reign start </th><th colspan=1 rowspan=1 > Reign end </th><th colspan=1 rowspan=1 > Notes </th><th colspan=1 rowspan=1 > Family </th><th colspan=1 rowspan=1 > Image </th></tr>
<tr> <td class="highlighted"  colspan=1 rowspan=1 > Peter I Portuguese: Pedro I </td><td class="highlighted"  colspan=1 rowspan=1 > 12 October 1798 – 24 September 1834 (aged 35) </td><td colspan=1 rowspan=1 > 12 October 1822 </td><td colspan=1 rowspan=1 > 7 April 1831 </td><td colspan=1 rowspan=1 > Son of John VI </td><td colspan=1 rowspan=1 > Braganza </td><td colspan=1 rowspan=1 >  </td></tr>
<tr> <td colspan=1 rowspan=1 > Peter II Portuguese: Pedro II </td><td colspan=1 rowspan=1 > 2 December 1825 – 5 December 1891 (aged 66) </td><td colspan=1 rowspan=1 > 7 April 1831 </td><td colspan=1 rowspan=1 > 15 November 1889 </td><td colspan=1 rowspan=1 > Son of Peter I </td><td colspan=1 rowspan=1 > Braganza </td><td colspan=1 rowspan=1 >  </td></tr>
</table>
Question:
Who was the first ruler of the Empire of Brazil and when is the reign?
Answer:
Pedro I ( Peter I; 12 October 1798 – 24 September 1834) was the first ruler of the Empire of Brazil from 12 October 1822 to 7 April 1831.