The swing is the most difficult part of the game to master initially. There is a proper sequence: back swing, down swing and then the impact follows through. It takes practice to master the mechanics so the club head hits the ball at the proper angle.
When the swing becomes second nature there is the tweaking to get it better. The hand position, the back swing, down strokes then the transferring of your weight through the follow through. The pros consult swing coaches regularly to analyze and improve their swing.
Our best advice is regular practice using a good book and video as a guide.