How to open a demat account?

I made several attempts to open a demat account, but sometimes it failed due to verification issues and other times it was because there was no check available. Could you give me the entire list of documents and the steps involved in opening a demat account?