This suit was brought by the town of Clayton against the appellees as sureties upon the bond of the marshal of said town. There were five counts to the complaint. The fifth count of the complaint alleges that one Houston was unanimously elected by the town council marshal of said toAvn for a term of two years commencing September 1, 1909; that, pursuant to the requirements of an ordinance of said town, said Houston executed, a bond, with appellees as his sureties, payable to said town, with condition that if the said Houston “shall faithfully discharge the duties of such office during the time he continues therein, or discharges any of the duties thereof, then the obligation to be void, otherwise to remain in full force and effect”; that during his term of office, and while in the discharge of his duties as such marshal, the said Houston collected certain taxes which had been levied and assessed by an ordinance of said town, and certain fines imposed in the mayor’s court on parties for a violation of the ordinances of the town, amounting in the aggregate to $286; and that the said Houston had failed to pay over the said money so collected by him to the said town. There was a demurrer to the complaint, the court sustained the demurrer, the appellant took a non-suit in consequence of that ruling of the court, and appeals.
*1931. Clayton is a town of less than 6,090 inhabitants, and, under the provisions of section 1068 of the Code óf 1907, the legislative functions of such towns must he exercised by the mayor and five aldermen, which constitutes the town council. Section 1067 of the Code provides that the town council shall elect a clerk, fix his salary and term of office, and may determine hy or-dinnace the other officers of such town, their salary, the manner of their election, and the term of office.
The appellees insist that the complaint was subject to attack by demurrer because it fails to state that Houston was elected marshal of said town by virtue of an ordinance creating the office of town marshal and fixing his term, duties, etc. The bond sued on recites that Houston “was on the 6th day of April, 1909, elected to the office of marshal in and for said town,” etc. The complaint shows that he Avas elected by the town council — the legislative body of the town expressly authorized to declare hy ordinance that one of the officers of the toAvn should be a marshal, and with the power to declare, in the same ordinance, that he should be elected by the council — and that there aauis an ordinance of the town requiring the town marshal, before entering upon the duties of his office, to execute a bond in the sum of $1,000 conditioned upon the faithful performance of the duties of his office. Courts do not take judicial cognizance of the existence of an ordinance of a toAvn or city, and it is, therefore, necessary to specially plead the existence of an ordinance when rights are claimed under it. There were ordinances, according to the averments of the complaint, defining the duties of the town marshal of Clayton. The complaint alleges that Houston was elected town marshal, performed the duties of that office under ordinances of the town, and that the bond was. given pursuant to an ordinance of *194tlie town. We think, however, that in this proceeding, which is a suit on a bond, the complaint, as against appellees, shows with sufficient clearness that there was such an office as marshal of Clayton, and that Houston was the marshal. — Sprowl v. Lawrence, 38 Ala. 674.
“In an action on the bond the sureties can make no defense not open to the principal, and in particular are estopped from setting up any irregularities in the appointment or election of their principal or in the bond itself.” — 29 Cyc. 1465; 15 Ency. PI. & Pr. 153, § 6.
2. The complaint shows 'with sufficient clearness that the moneys collected by Houston were taxes assessed and levied by virtue of ordinances of said town and fines imposed in the mayor’s court, and that they were collected by Houston as marshal of the town under the authority of ordinances of the town, and that in failing to pay over such moneys he had failed to faithfully perform the duties of his office so fixed by ordinance, and had violated the terms of the bond.
“The sureties on an official bond are not permitted to advance, as a defense to an action on the bond, the fact that moneys received by their principal in the performance of his official duties were received because of the unlawful or improper or irregular action of some other authority or person.” — 29 Syc. 1465, § 5; 15 Ency. PL & Pr., supra.
The taxes and fines set up in the complaint were paid to Houston by the parties who paid them under and by virtue of ordinances of the town of Clayton, and they were paid to him because, under ordinances of the town, he was the officer entitled to receive them. He has failed to pay the money so collected to the town as it was his duty to do. The above facts are plainly shown by the averments of the fifth count of the complaint, *195and. that count was not subject to appellee’s demurrer.
We do not deem it necessary to consider the question as to the sufficiency of the first four counts of the complaint. It is evident that, if the appellant is entitled' to collect the money sued for in the complaint, it can recover a judgment for the same under the fifth count. It is, therefore, unnecessary to consider the first four counts.
Beversed and remanded.