First of all, you will have to follow each and every guideline of Google and need to do an ethical SEO. You should not be performed below black hat techniques to avoid a penalty:

1. Keyword Stuffing
2. Doorway pages
3. Hidden Text
4. Clocking
5. Duplicate content
6. Link exchange
7. Buying backlink
8. Irrelevant backlink