Microtasks (e.g., Promise callbacks, process.nextTick) have higher priority and are executed immediately after the current script finishes, and before the event loop proceeds to its next phase. Macrotasks (e.g., setTimeout, setInterval, I/O operations) are processed one per event loop cycle, after all microtasks are exhausted, influencing execution flow and potential blocking.