P.M.
A young child's life is pretty constantly managed, and often abruptly manipulated, limited and controlled by parents, schedules and circumstances. They hear "no" a dozen times an hour, and are lucky if they get "yes" anywhere near as often.
One useful way to shift that balance is to offer alternatives to an unwanted activity; a distracting toy, or a kind and patient instruction in what you DO want from him, rather than what you don't. Bear in mind that his attention span is short, his desires are huge, and he'll be needing this same gentle guidance a thousand times a month for the next two years. NOT his fault.
Few children can accept constant correction and management without distress (nor could most adults). Too much frustration, which the child did not choose to feel, quite logically results in either tantrums or withdrawal. In the case of tantrums, parents may believe it necessary to add an additional frustrating layer of discipline, which usually translates as "punishment." For a young child, this usually adds to his emotional burden, confoundment, and rage.
Consider life from your son's perspective. Negative behavior seldom, if ever, occurs without some situation that provokes it. So it's up to the parent to consider likely trigger situations, and avoid or alter them when possible.
There may be ways you can reduce the conflict and clashes by simplifying his days, planning ahead when you need to meet a schedule, giving him advance notice when he'll need to let go of an activity he's enjoying, participate cheerfully with him when you want him to complete a task (probably won't take any more time than dealing with a tantrum), and keep as much humor and fun in your days as possible (this will enrich your parenting experience, too!).