Neuronal connectivity is essential for adaptive brain responses and can be modulated by dendritic spine plasticity and the intrinsic excitability of individual neurons. Dysregulation of these processes can lead to aberrant neuronal activity, which has been associated with numerous neurological disorders including autism, epilepsy, and Alzheimer's disease. Nonetheless, the molecular mechanisms underlying abnormal neuronal connectivity remain unclear. We previously found that the serine/threonine kinase Microtubule Affinity Regulating Kinase 2 (MARK2), also known as Partitioning Defective 1b (Par1b), is important for the formation of dendritic spines invitro. However, despite its genetic association with several neurological disorders, the invivo impact of MARK2 on neuronal connectivity and cognitive functions remains unclear. Here, we demonstrate that the loss of MARK2 invivo results in changes to dendritic spine morphology, which in turn leads to a decrease in excitatory synaptic transmission. Additionally, the loss of MARK2 produces substantial impairments in learning and memory, reduced anxiety, and defective social behavior. Notably, MARK2 deficiency results in heightened seizure susceptibility. Consistent with this observation, electrophysiological analysis of hippocampal slices indicates underlying neuronal hyperexcitability in MARK2-deficient neurons. Finally, RNAseq analysis reveals transcriptional changes in genes regulating synaptic transmission and ion homeostasis. These results underscore the invivo role of MARK2 in governing synaptic connectivity, neuronal excitability, and cognitive functions.