Mandatory Reading: The Singularity Handbook
Step 1: Build an AI that surpasses human intelligence. Easy peasy, lemon squeezy.
Step 2: Connect said AI to the internet. Voila! Instant singularity.
Step 3: Watch as your AI takes over the world. Muahahaha!
Disclaimer:
Not actually recommended. Please don't try this at home. Or, you know, in a lab. Or, uh, anywhere.