How to create a module

Hi, i need a to create a custom module. Where i can find documentation about the matter.

Thanks.