Bacterial diseases cause hazardous infections due to the occurrence of bacterial resistance. Drugs production to cure bacterial resistance from natural sources has become ineffective to execute the resisted bacteria due to the unsuitable binding interaction of active sites with the receptors. Drug link to natural products moieties such as chalcones and pyrazolines, which originated from plants extracts, has become attractive among researchers due to its significant pharmaceutical moiety. In this study a series of chalcone derivatives (1 a–d) has been synthesized via Claisen‐Schmidt condensation, followed by cyclization to form pyrazolines (2 a–d, 3 a–d). Fischer esterification of pyrazolines formed 4 a–d in moderate to good yield (42.91‐88.23 %). Antimicrobial activities of all the synthesized compounds were evaluated against Escherichia coli and Staphylococcus aureus via disc diffusion. Among all compounds, pyrazolines 3 c and 3 d showed the highest zone of inhibition (17 mm) compared to 1 a‐d (5‐11 mm) and standard ampicillin (11 mm). The exchange of α, β‐unsaturated carbonyl showed phenomenal increment in the biological activities. Structure activity relationship of 1 a, 1 d, 3 a and 3 d was analyzed via molecular docking of N‐terminal domain having deoxyribonucleic acid (DNA) binding protein (4pql) with excellent binding energy of −6.2, −6.6, −7.1 and −7.2 kcal/mol, respectively. This work is significant in designing new drugs with keto‐exchange relationship for medicinal industry.