Wikipedia actually has few strict rules, but rather is founded on five fundamental principles. Wikipedia's policies and guidelines are developed by the community to clarify these principles and describe the best way to apply them, resolve conflicts, and otherwise further our goal of creating a free and reliable encyclopedia.
Policies express the fundamental principles of Wikipedia in more detail, and guidelines advise how to apply policies and how to provide general consistency across articles. Formal policies and guidelines have a notice at the top of their pages, and the prefix "Wikipedia:" or "WP:" before their page name.
While there is a policy or guideline for almost every issue imaginable, no one is expected to know all of them! Luckily, there are a handful upon which all others are based. The next few pages describe the most significant of these, representing the general spirit of Wikipedia's rules. Knowing these basics makes discussions and editing easier and more productive.