delivered the opinion of the court:
Section 6yb of chapter 32, Hurd’s Revised Statutes of 1903, provides that no foreign corporation organized for pecuniary profit shall be authorized or permitted to transact business in this State, or to continue business herein if already established, until it shall designate some person as its agent or representative in this State on whom service of legal process may be had.
Section 6yd of the same chapter provides a punishment for any neglect or failure to comply with the act, and contains this further language: “In addition to which penalty, on and after the going into effect of this act no foreign corporation, as above defined, which shall fail to comply with this act, can maintain any suit!, or action, either legal or equitable, in any of the courts of this State upon any demand, whether arising out of contract or tort.”
The two sections referred to are parts of an act which became effective on July 1, 1899. (Laws of 1899, p.. 118.)
According to the averments of this plea, appellant transacted the business in question in this State at a time when it was forbidden by our laws so to do, and it was not permitted by our laws to maintain any suit, either legal or equitable, in any of the courts of this State when this suit was instituted. Appellant’s contention is, that its right to bring this action is not barred by these statutes; that they merely abate this suit, leaving to the foreign corporation the right to maintain its action if it shall hereafter qualify to transact business in this State.
In the case of Cincinnati Mutual Health Assurance Co. v. Rosenthal, 55 Ill. 85, a similar question arose, the foreign corporation there being an insurance company which had brought suit in this State upon a note given to it for stock in the corporation and for premium on a policy of insurance. It appeared that the contract in pursuance of which the note was given was entered into and the note executed and delivered in this State when the plaintiff was not authorized to transact business in this State, for the reason that it had not complied with the laws of the State in reference to foreign insurance companies. Its lack of authority to conduct its affairs in this State was interposed in bar of the action, and the court, after pointing out that the statute expressly prohibited such a company from effecting insurance or transacting business in this State until after it should have complied with the statute in reference thereto, used this language: “When the legislature prohibits an act or declares that it shall be unlawful to perform it, every rule of interpretation must say that the legislature intended to interpose its power to prevent the act, and, as one of the means of its prevention, that the courts shall hold it void. This is as manifest as if the statute had declared that it should be void.”
This case has been cited with approval on a similar proposition in Penn v. Bornman, 102 Ill. 523, and Illinois State Trust Co. v. St. Louis, Iron Mountain and Southern Railway Co. 208 id. 419.
The contract upon which this suit was brought having been entered into in this State when appellant was not permitted to transact business in this State, is in violation of the plain provisions of the statute, and is therefore null and void, and no action can be maintained thereon at any time, even if the corporation should at some time after the making of the contract qualify itself to transact business in this State by a compliance with our laws in reference to foreign corporations that desire to engage in business here.
The judgment of the Appellate Court will be affirmed.
Judgment affirmed.