A constructor function in blockchain smart contracts runs only once during deployment. It sets initial values for variables so the contract starts with the right data. For example, if a contract has a variable x, the constructor can set x to a value given when deploying. After deployment, the constructor cannot be called again. This ensures the contract's starting state is fixed. The execution table shows deployment, constructor running, and contract ready with x set. The variable tracker shows how x changes from uninitialized to the input value. This helps beginners see the constructor's role clearly.