Bylaws are a type of law, and specifically a type of legislation, made by a municipal council, rather than the other two spheres of government (ie. provincial and national government). relate to issues in the local community; and apply only in the area of jurisdiction of the municipality concerned.
There's plenty of work that goes into writing bylaws, so let's break down what you need to get writing! Research. Form a committee. Create the structure. Outline your organization's key roles and responsibilities. Establish your meeting rules. Define your membership. Address finances. Outline the amendment process.